<!--<template>-->
<!--  <HelloWorld/>-->
<!--</template>-->

<!--<script setup lang="ts">-->
<!--  import HelloWorld from './components/HelloWorld.vue'-->
<!--</script>-->

<!--<style scoped>-->
<!--.logo {-->
<!--  height: 6em;-->
<!--  padding: 1.5em;-->
<!--  will-change: filter;-->
<!--  transition: filter 300ms;-->
<!--}-->
<!--.logo:hover {-->
<!--  filter: drop-shadow(0 0 2em #646cffaa);-->
<!--}-->
<!--.logo.vue:hover {-->
<!--  filter: drop-shadow(0 0 2em #42b883aa);-->
<!--}-->
<!--</style>-->
<template>
  <div id="app">
    <router-view />
    <button @click="onOpen">websocket连接按钮</button>
  </div>
</template>

<script>
import websocket from '../src/components/moment/WebSocket.js'
export default {
  name: 'App',
  created(){
    // localStorage.setItem("clientId","user-1")
    // websocket.Init("user-1")
  },
  methods:{
   onOpen () {
     console.log(11)
     websocket.Init("user-1")
    },
  }
}
</script>
